<%@ page language="java" contentType="text/plain; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Calendar, dao.AtdDAO, vo.AtdVO, java.util.List, java.sql.Timestamp"%>
<% request.setCharacterEncoding("UTF-8"); 
    String date = request.getParameter("date");
    
    if(date=="" || date==null){
    //	Calendar cal = Calendar.getInstance();
    //	String year = cal.get(Calendar.YEAR);
    	date = "2014-07-17";
    }
%>    
[
<%
	System.out.println(date);
	AtdDAO atddao = new AtdDAO();
	List<AtdVO> dailyList =  atddao.get_daily_list(date);
	
	for(int i = 0; i < dailyList.size(); i++){
		AtdVO atdvo = dailyList.get(i);
		%>
		
		{
    		"stdNo"  : "<%=atdvo.getStdNo()%>",
    		"name"  : "<%=atdvo.getName()%>",
    		"school"  : "<%=atdvo.getSchool()%>",
    		"telephone"  : "<%=atdvo.getTelephone()%>",
    		"status"  : "<%=atdvo.getStatus()%>",
    		"atdTime"  : "<%=atdvo.getAtdTime()%>",
    		"detail"  : "<%=atdvo.getDetail()%>"
    	}
		
		
		<%
	}
%>
]